Added pixel resolution function