remove unused encoder metadata in image