def vertical_split(image):
    """Perform vertical split in four images of size 512, with overlap to account for custom image size."""
    n_overlap = (2048 - image.shape[1]) // 2 # 65 pixels overlap each time

    im1 = image[:,0:512,:]
    im2 = image[:,(512-n_overlap):(1024-n_overlap),:]
    im3 = image[:,(1024-n_overlap):(1536-n_overlap),:]
    im4 = image[:,-512:,:]

    return [im1, im2, im3, im4]