if not necessary don't get new image

Moves 3 lines for keeping the function call short