don't try to set a transparent index (on GIFs) if the original image didn't have one
fix some issues with remote file handling and missing extensions