Fix overplotting entire datasets on images.

Closes #249
Merge pull request #260 from ChrisBeaumont/hist-scatter-fix

Fix overplotting entire datasets on images.