refactored PiConnection class
added black image to resources