PNG and JPEG Encoder with DPI settings

DPI can set but image will not resampled