An image file is made up of two parts namely the file container and image data. The container is the common structure which uniquely defines JPEG image. If the container of a JPEG file is damaged or is corrupt then the software will not be able to identify the file as a JPEG file and you will get an "Invalid image" message. Such images are corrupt beyond repair. This means that such JPEG images are severely corrupt and it is not possible to repair them.