refactored creation of images, created removing method, verified dictionary for holding references to image elements