Avoid resize operation if image is already the correct size