simplify Page constructor

use setImage to set the image instead of directly setting the image,
height, width separately