Refine the appearance of attachment thumbnail so it is not distorted