Fixing some undefined variables in the image field type.