Fixes total view count on image index page