reading images not fully done