Fix bug causing images to blow out past 100% if they are larger