Made Three Changes

1)added the typelib for excel at work
2)added an "IF" to detect if image is vertical, and if so to add borders
to it (this prevents it from formatting oddly and butting up against
another photo)
3)fixed the two calls to deprecated items