Given that:
Width of the page = 640 pixels
Size of the left margin = 24 pixels
Size of the right margin = 24 pixels
Space between each picture = 16 pixels
Number of pictures = 4.
Then the number of spaces between 4 pictures is 3. So, the space needed between the four pictures

Width in the page remaining for pictures

Width of the picture

Thus, the wide of a picture that can be fit four pictures on the page is 136 pixels.