sorted out scrolling issues and drawing inside image region only