Check that file is valid pointer.
Use calloc instead of malloc.
Show image size at right status line