As an alternative solution I would also recommend binding the image gallery to a static collection instead of a folder. An example on how to achieve this is available here
DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.