it now subtracts the background image properly