Fixes painting rendering for #18