extract methods for adding and removeing images