HTML canvas resize + other tweaks