Use Factory Girl instead of database.
Use scopes for gend_image queries.