Functions for manipulations of bitmaps with R
