ImageOptim#to_image_path preserving instance if it is already ImagePath (fixes GC.start unlinking file created by temp_path if it was rewrapped into new instance)