Question: is foto masculine or feminine?
Answer: Yes, that's right: foto is an abreviation of fotografía or fotografías (both with "f") and therefore corresponding to the general clue saying "feminine when ending in A and masculine when ending in O." But I'm sure you're aware that this rule has many exceptions like LA mano, EL taxista.