within your theme create an file called image.php
and simply add the following code:
<?php wp_redirect(get_permalink($post->post_parent)); ?>
this will redirect the attachment page to the post parent, which is usually the page the image is featured on.