support for both VMTs

DRYing up image taking code
images can now include style name
stock images of either team are named correctly
trim() now works correctly