When no image, set imagegaps to zero