Is your post to image association custom?
If not attachments should be automatically deleted by Wordpess.
If the connection is custom, WordPress provides a delete_post action that fires before and after a post is deleted, it will pass the ID of the post so you can use that to delete all custom content associated with it.