export a define if libPNG is found.
add API to bind an event to a key pressed

also add screnshotting utilities.
port to the new console APIs.