Added support for non base 2 sized PNGs.