Fixed IOError when uploading spreadhseet with empty image fields