Added code for ANN image acquisition.