bug fix, image maniuplation