returns gif correctly