Adding code for image retrieve operation - Incomplete