refactor of errorMessaging img directory