remove all metadata except for width and height