Fix rendering of translucent shapes [#555]