added compression

heavy refactoring - separated png functionality into separate plugin
added compression to transparent pngs
added png filter method 0
fixed indexed png colour issues, but still no transparency
made addImage method scaleable for new formats