Convert any file to an image