removed PRE tag. added more image calc code.