remove unneeded bitmap