image length fix