tweaked image reader