Convert image field type