Improve __metadata_editor_get_picture_type() API