Resize an image to icon size, clip out a rounded rectangle, draw shadows and apply a glossy overlay, so that it resembles an icon.