footer img tidy up
use function instead of raw sql