Read a image from directory and display it , and write it as different extension(or type)