Adding image gradient generation and improving image key generation.