Improved image quality measure through particle swarm optimization