Modified imgareaselect script and added ID for resources