operations: make emboss always preserve alpha

also clean up the code and fix misleading use of "x" for the y-axis
and the other way around.