Set icon attrs and similar on file upload instead. That way we can change mimetype depending on what's uploaded