added typeserializer for bitmaps