Clone of Simon Urbanek's R png package