core:img_io add py3 support, img_sdl2 add save support

tested on both py2 and py3