adding picture updating functionality