bug fixe to image page controller