Fixed and simplified phpwcms_pixelratio cookie generation