Before reading this thread, I had always associated the description “cheesecake” with the display of teeth that usually accompanied these pictures. Photographers say “Say Cheese” to get their subjects to smile.
There seems to be no connection to “cheesy” as in shoddy or inferior, as that came from the British in India.