fixes for gif image uploading