Broke png read/write into separate file. Added jpeg write support. writing read now...