make image width/height calculation optional