Portable electronic devices with integrated imaging capabilities