add log functions
don't resize images on page load