Adding PNG support

Added support for resizing PNG files. Along with fixing the percentage, and auto ratio calculations