updating image component