Solved bugs in ImageResizer which led to black backgrounds on transparent PNGs. Improved repeating code for watermarks