Refactored so the thumb width and height get saved to the $thumb instance