Fixed bug in gallery thumbnail path