LSTM for image processing