fixed sizing issue for ad-hoc images