fixing first image bug