Add a test to do not generate javascript if image list is empty.