Bytes
The bytes of an encoded image file (PNG, JPEG, ...) — what an app gets from a photo picker, a file, or its own assets on any platform. That makes this the way to use a picture from the user's phone: on Android a picked photo is a content:// address, not a file path, but an app can always read its bytes.
key identifies the content: the decoded image is cached under it so it isn't decoded again on every redraw. Two Bytes with the same key are treated as the same image (equality and hashing use only the key), so give a different key to different pictures, and a new key when the picture changes.
Large images are shrunk when they are decoded, so there is no need to downscale first.