How to change password of the .sparseimage encrypted image on El Capitan?

I have an encrypted .sparseimage, and can't change password. Don't see any option in Disk Utility. Is it possible and how to change password of the .sparseimage encrypted image on El Capitan?


Option 1: Disk Utility

In Disk Utility: select the image in the sidebar, then FileChange Password...

(You must unmount the image before you can reset it).

Option 2: Terminal

In Terminal:

hdiutil chpass <image>

More info: man hdiutil