My facebook app lets the user upload an image, select what the image is (eyes, nose, mouth or other body part) and then can combine by selecting three random images by category and he is works fine and the code looks ok and readable though not very advanced: