Added smooth resizing of bitmaps