Add size parameter to dictionary to allow for efficient size query without loading image into memory