Makes sure images don't bug out.