Fix permissions of painting.html.