made loading and drawing scalable