Contents proper image-resizing, other fixes