Skeleton Logic to handle add zpic images; send_request_to_server is further modulized