fix issue with loading when there are no images