Added an alpha-check to the renderer