Fixed ctypes error and load directly from PNG

Added ctypes import to fix an error on my machine. Texture is now imported directly from PNG (removed base64 string code, included encode.py as it is not needed).