added hack for gif files