def set_image(self):
temp_soup = self.full_soup<EOL>for item in temp_soup.findAll('<STR_LIT>'):<EOL><INDENT>item.decompose()<EOL><DEDENT>image = temp_soup.find('<STR_LIT:image>')<EOL>try:<EOL><INDENT>self.image_title = image.find('<STR_LIT:title>').string<EOL><DEDENT>except AttributeError:<EOL><INDENT>self.image_title = None<EOL><DEDENT>try:<EOL><INDENT>self.image_url = image.find('<STR_LIT:url>').string<EOL><DEDENT>except AttributeError:<EOL><INDENT>self.image_url = None<EOL><DEDENT>try:<EOL><INDENT>self.image_link = image.find('<STR_LIT>').string<EOL><DEDENT>except AttributeError:<EOL><INDENT>self.image_link = None<EOL><DEDENT>try:<EOL><INDENT>self.image_width = image.find('<STR_LIT:width>').string<EOL><DEDENT>except AttributeError:<EOL><INDENT>self.image_width = None<EOL><DEDENT>try:<EOL><INDENT>self.image_height = image.find('<STR_LIT>').string<EOL><DEDENT>except AttributeError:<EOL><INDENT>self.image_height = None<EOL><DEDENT>
Parses image element and set values