debuged bash script & read image; hardcoded directory in bash script