BitmapFrontEnd's add() method refactoring (less casting)