I suggest to you an application like this www.slicemaker.com (they've done great idea i buyed but this company dont have support and application is full of bug, continuos crash ad zoom do not work, unusable)
import any image jpg or psd , and generate manually and visually div css code