correct drawing of left/upper image boundaries