Added clear on bmp variable.