fix for chrome crashes when downloading image