added png module
removed some debugging messages