fixed minor issue (gallery image paths were created way too often)