fixed Image reading
changed image structure