Changes to support FK references to Image models.
Added migration to create Image records for image files which don't
exist in the database.