PNG creation and manipulation helper