Do not reallocate image if resizing with identical data