Got image sizing to work, fix was to add in width and height of the thumbnail to the database