Rewrite camera plugin using ripple functionality