Set up vars for height and width for thumbnails as hardcoding is bad :3

Updated attachments partial to use the thumbnail generator again