Simplify bitmap management. Remove usage of finalizers.