Image field naming option and length of random method

Image field naming option was hard coded.
Added length method for use cases where people need custom length of random file name than default 32 characters long.