Correctly handle pictures of a different size