resize image to proper size for disssplay chooser