i don't think so there is nothing wrong with the code..
maybe it's because the size of the picture file.... try with a smaller size image..