Remove logging and unused imageAttachment.
Update to xcode 4.6 because of nagging.