shortens the img