Fixed small bitmaps resolution.

The idea came from Anton.
Improved resize option.