Read your plugin's documentation. Adding the hashtag is often something they facilitate explicitly to allow for bookmarking and such--and it can sometimes be turned off within the plugin. Something like .pluginName({'hash': false});
.
For instance, in Galleria, it's:
$('ul.whatever').galleria({history : false});
Hacky solution
Since you're using Galleria, you could maybe do the following:
In your CSS file, declare a background for the Galleria generated div:
.galleria_wrapper {
background-image: url(thing.png);
background-repeat:no-repeat;
width:200px;
height:100px; /*whatever else you need*/
}
In Galleria's onImage function, get rid of it:
$('ul.whatever').galleria({
history : false,
onImage : function() {
//undo stuff in here
$(".galleria_wrapper").css({"background-image": "none", "height": "auto", "width": "auto"});
}
});
That should make it so your original image shows and is removed if the user calls up an image.