Users to choose how to view images
Use different view modes for your entity (node).  Each view mode (also called a build mode) can have different template (.tpl.php) files.  Use hook_entity_view_mode_alter to decide which view mode to use (based on your user's selection).

You can use the View Modes module to create custom view modes.