Some more work on convertPNG, doesn't work yet