Add utility for dealing with bitmap