A court has ruled that images of the bodies of deceased US actor Gene Hackman and his wife may not be published. The couple were found dead at their home in February.