If an image at a index is null, we will now return the closest non null neighbour