Instead of using a Raspberry Pi camera with my Prusa MK2/Octoprint system, I'm actually using a ELP USB wide angle full HD camera (http://www.elpcctv.com). I prefer an USB one simply because it allows me to use it with other devices.
I got inspired by this by https://www.thingiverse.com/thing:2113975 and https://www.thingiverse.com/thing:1646474 for the base design.
The bed arm could be installed on the two side of the Prusa bed and can be moved forward or backward. The back cover could be installed in different orientations, so you could bring out the USB cable from the case on the side you want. As the front and back case parts close very very tightly, I have added 2 small apertures to easily open the case with a small screwdriver. As the camera heats I have also added apertures for aeration.
The case is fixed on the arm using a M3x25 screw + nuts. Amd the arm is fixed on the Prusa bed using a M3x10 screw + washer.