add image size commandline reading