Make image uploader work for all models