read image file and load to memory