Refactorings. Made ImageClient into a more generic PFrameClient.