Add 'while' for grabbing nore data and save JPG only