extract dimension initialization
Fixed typo
Show cpatured image
Fix states