Fix warnings

This switches to the modern image drawing routines introduced in 10.6 so as to avoid directly mucking with image flippedness. @MrNoodle anything else you think I should look at?