Flag System for Images?

Flag System for Images?

For example:
The images are printed on screen inside of a div.
The user clicks the "flag button" and then chooses multiple images, which then may get stored inside an array. The user then clicks the "submit" button, this then may get submitted through the POST method.

I was wondering if there is a plugin for this I could be using.

If I may have to program this myself, where can I start with this, what may I need for this?

I would appreciate the suggestions a lot.

EDIT:
You may want to recommend a different way to do this flagging system?