Adds if statement on target image