Below resize codes are not performing well on image quality and code was not well written doing such things properly (CAPS extention, detecting image type or so on). Getting image type is not a good option from image filename, better to get get it from binary information. So I decided to rewrite all.

- You can now set x or y value only, or both. If both set constrain value = 1 (or true) so calculation decides either x or y value to be used. Otherwise generated image's x or y size can be shrinked.

- Now you can set JPG quality