bitmap serializer