adds image resizing for both logos and image comments