Move the view_file to sane place. Store mimetype on images.