Increase key length and sort images for consistency.