I\'ve used this code to automatically resize the image to fit the container it\'s in, this code is working in other areas of my site, so I have no idea why it\'s not working