How to show 404 page for not found images
While @Shawn Conn's answer does work it does cause issues in Drupal because of image cache. If you go to a page that doesn't have the image style created yet it won't create the image because of the .htaccess rule.

The best way to display a 404 page on bad images is to use the Fast 404 module and create a static html page.