Fix for a minor bug when augmenting an image from the gallery