JIRA ID[MD-19]
- Refactoring stored procedures
- creation of a new function ( update_image)