Models can now specify what type the attached file is using model function is_tgm_image.