code for make a fitted canvas overlay in progress