avoid downloading assests, fixed bug when downloading GIF or PNG