added bmp and ram support