Two men arrested in Houston, Texas, have been accused of stealing an iPad and using it to take selfies that they unknowingly uploaded to the owner's iCloud account.

The men appeared in the photos displaying money they are also accused of taking from the victim.

Investigators arrested the pair on theft charges late on Wednesday.

The iPad, other electronics and thousands of dollars were stolen from the victim's truck on January 8.

He later noticed his iCloud account had images of the men holding 100 dollar bills.

Some stolen items were dumped behind a Starbucks. The victim believes his iPad connected to the Starbucks Wi-Fi and the images synced to his iCloud account.

He shared the images with the media. The photos ended up online, helping authorities identify the suspects.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.