adds image and file support, close #1

also fixes migrations rollback