fixed small bug in img display