Adding img handling