[code] use the first attached image to post as the main image in a post, rather than using yapb image