fix bug with no images present