fixed image resizing

aspect ratios were doing integer division.
also, the panels for each image didn't have a layout, and were ending up
with 0x0 dimensions instead of filling the space.