I see you're missing .png and .jpeg from your list; its not case sensitive, so all you need is:
.gif,.jpg,.jpeg,.png

Then whatever file attachment extensions you want to support such as:
.css,.txt,.pdf,.gz,.rar,.tar,.tgz,.zip

UBBDev uses:
.gif,.jpg,.jpeg,.png,.css,.txt,.pdf,.gz,.rar,.tar,.tgz,.zip