All it's doing is skipping the alpha channel when copying the data over
Also did some changed the whitespace of the affected functions.