classify imageCaption fuction