refined image upload request with Gif support and NSData with tests