Don't use imagecreatefromstring if not resizing.