Add an error dialog if directory contains no image files