more work on image reading