Revert "fix 404 for non numeric id errors"

This reverts commit 97e180f137188a964db849af7212b3bec9161722.
tweaking image gallery and reverting 404 for non numeric ids