update logic in transitionImageLayout to use the right subresource aspect
#371
+40
−4
transitionImageLayout to use the right subresource aspect
#371