Moved jquery to head to try and improve image bug