added image lock feature