fix previous if there's only 1 image