Tuning fix in grab page images code