patch for 2d_flat odd behaviour and set_alpha with transparent background