fixed image length problem