bugfix where gif images weren't uploading