Adding logic for last tansaction image