Improved functionality of the PNG module

The PNG module can now act independently