fixing bug with pending transactions and displaying images