updated image length