update for image after update and commented out page type code