Fixes #656 - enables gif files to be uploaded