ImageUtils: added utility function for converting Buffer to PNG.