The court said the photographs were improperly withheld from Lacy under a prison policy banning pornography.
Two of the photos show women sitting on the beach in bikinis and two others show the same woman standing in a pink bikini in front of a wall.
The court says the four photos do not violate the prison's pornography ban although several other shots he ordered were too risque and were properly withheld.