Changed .ready to .load so sizes will render before being sent to the server
Changed $(document).ready to $(window).load so sizes will render before being sent to the server