Support new texture layout

fixes #52