Use auto, now that a reference is returned
Adapt to changed return type of getLocalBitmap
Directly pass References to function