support of pixeldepth for elevations

sorry for the formatting. VS2013 has did it :)