improved cig positioning
sending image on base64 on request