Memory issue fixed with bmp image