Fixing analytics and image sizing