Fix Z-order; introduce alpha mod for sprites and layers