now all image files can be uploaded!
other fixes