Python Image2base64 Resources