Solve Image density issue
 - corrected tests