replacing bmp by png format to handle transparency