Added protection against image trace plotting removing ticks at end.