fixed webgl errors

cause was not waiting for images to load