core: img_pil handle frame transparency for gif's properly