Changed way to read Images from Files