added image-to-png, context creation, matrix creation