Implemented capture images.