Fix ActionView::Template::Error (undefined method 'downcase' for nil:NilClass) revert image to name