A bit of spiffing up the png grabbing API.