Bug 947029 [B2G][Gallery][Small images]Extremely small images display in...

... gallery with a larger than expected thumbnail

When adding a thumbnail item, if it is smaller than the thumbnail size, add the 'thumbnail-small' class so as to not scale it up.