adjust image and gif