Added logging for gallery creation