creating a gallery now added to bbcode subroutine instead of being a plug in