Encoding from any image files