imagep(): use end colours if past zlim (issue372 part 2)