Dont limit image size, so by default default thumbnail size will be used
Dont show attachment thumbnails, if attachment thumbnails option is disabled in settings.
Move styles to stylesheet file and stylizing attachments
Margins correcting.