support for medium images in place; misc tweaks