image now resizes when the image panel resizes along with the dots and trajectories