updating imgopt to use shared pkg