implement resize & fix canvas height