Upload and read images from hdfs