fix gradient colour problem with removing images