Added boundary conditions
images now scale correctly when zooming

double click now takes you to the minimum best fit (zoomFit())