Bugfix: Don't resize image if not necessary.