fixed from_png compile errors
test_view saves a PNG file when 's' is pressed